/*
 * @Author: zhangwenbangde@163.com
 * @Date: 2020-09-15 19:37:43
 * @LastEditTime: 2020-09-23 11:21:29
 */


import { axiosResource } from './axiosapi';

const API_HOST = '';
const SERVICE_NAME = '/pi-cz/api';
// const SERVICE_NAME = '/api';
export const Resource = {
  /**
   * 首页
   */


   //获取证件类型
  idType: axiosResource(`${API_HOST}${SERVICE_NAME}/v1/dict/data/id_type`),
  //发送短信验证码
  sms: axiosResource(`${API_HOST}${SERVICE_NAME}/v1/user/register/sms`),
  //登录注册
  auth: axiosResource(`${API_HOST}${SERVICE_NAME}/v1/user/register/auth`),
  //查询用户信息
  profile: axiosResource(`${API_HOST}${SERVICE_NAME}/v1/user/profile`),
  //投保
  insert: axiosResource(`${API_HOST}${SERVICE_NAME}/v1/insure/order/save`),
  // 订单状态
  orderStatus: axiosResource(`${API_HOST}${SERVICE_NAME}/v1/map/orderStatus`),
  // 查询订单
  queryOrder: axiosResource(`${API_HOST}${SERVICE_NAME}/v1/insure/order/query`),
  // 查询订单是否待支付
  isWaitPay: axiosResource(`${API_HOST}${SERVICE_NAME}/v1/insure/order/isWaitPay`),
  // 是否可以拉起公众号支付
  payEnable: axiosResource(`${API_HOST}${SERVICE_NAME}/wxpay/jsapiPayEnable`),
  // 微信端微信支付
  wxPay: axiosResource(`${API_HOST}${SERVICE_NAME}/wxpay/jsapiPay`),
  // 取消支付
  cancelOrder: axiosResource(`${API_HOST}${SERVICE_NAME}/v1/insure/order/cancel`),
  // 查询礼包列表
  giftType: axiosResource(`${API_HOST}${SERVICE_NAME}/v1/dict/value/gift_type`),
  // 查询福气账户
  queryFission: axiosResource(`${API_HOST}${SERVICE_NAME}/v1/FissionAccount/queryFission`),
  // 开礼包
  openGift: axiosResource(`${API_HOST}${SERVICE_NAME}/v1/FissionAccount/openGift`),
  // 分享获得礼包详情
  shareGift: axiosResource(`${API_HOST}${SERVICE_NAME}/v1/FissionAccount/shareGift`),
  
};
